package com.hxht.storage.server.bean;

import java.io.Serializable;


public class PlanRecordParamBean implements Serializable{


    /**
	 * 
	 */
	private static final long serialVersionUID = -3590136406621731422L;

	/** 录像保存的最长时间，单位：天。<br/>
     * 超过这个时间，该录像文件将被强制删除；若设置为0天则不强制删除，除非文件被循环覆盖
     * 
     */
    private int recordDuration = 0;

    /** 是否冗余录像（重要数据双备份）：<br/>
     * 0-不录像，1-录像
     */
    private boolean isRedundancy = false;

    /** 录像时复合流编码时是否记录音频数据：<br/>
     * 0-不记录，1-记录 
     * 默认记录音频数据
     */
    private boolean isAudioRecord = true;

    /** 录像是否存档 <br/>
     * 0- 录像不存档，1- 录像存档，目前定时录像不存档 
     */
    private boolean isArchive = false; 

    /** 录像锁定时长，单位：小时 <br/>
     * 0表示不锁定，0xffff表示永久锁定。<br/>
     * 录像段的时长大于锁定的持续时长的录像，将不会锁定
     */
    private int lockDuration = 0;
    
    /** 计划录像的星期模板 */
    private String templateName;
    
    /**  预录时间：0-不预录，1-5秒，2-10秒，3-15秒，4-20秒，5-25秒，6-30秒，7-0xffffffff(尽可能预录)  */
    private int preRecordTime;  

    /** // 录象延时时间，0-5秒， 1-10秒， 2-30秒， 3-1分钟， 4-2分钟， 5-5分钟， 6-10分钟 */
    private int postRecordTime; 
    
    /** 码流类型，0-主码流，1-子码流，2-第三码流 */
    private int streamType; 

	public int getPreRecordTime() {
		return preRecordTime;
	}

	public void setPreRecordTime(int preRecordTime) {
		this.preRecordTime = preRecordTime;
	}

	public int getPostRecordTime() {
		return postRecordTime;
	}

	public void setPostRecordTime(int postRecordTime) {
		this.postRecordTime = postRecordTime;
	}

	public int getStreamType() {
		return streamType;
	}

	public void setStreamType(int streamType) {
		this.streamType = streamType;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public int getRecordDuration() {
		return recordDuration;
	}

	public void setRecordDuration(int recordDuration) {
		this.recordDuration = recordDuration;
	}

	public boolean isRedundancy() {
		return isRedundancy;
	}

	public void setRedundancy(boolean isRedundancy) {
		this.isRedundancy = isRedundancy;
	}

	public boolean isAudioRecord() {
		return isAudioRecord;
	}

	public void setAudioRecord(boolean isAudioRecord) {
		this.isAudioRecord = isAudioRecord;
	}

	public boolean isArchive() {
		return isArchive;
	}

	public void setArchive(boolean isArchive) {
		this.isArchive = isArchive;
	}

	public int getLockDuration() {
		return lockDuration;
	}

	public void setLockDuration(int lockDuration) {
		this.lockDuration = lockDuration;
	}
	
}
